package com.myfum.mobile.tetris.events
{
	import flash.events.Event;
	
	public class P2PEvent extends Event
	{
		public static const MESSAGE_RECIEVED:String = "messageRecieved";
		public static const SEND_MESSAGE:String     = "sendMessage";
		public static const NET_STATES_CHANGED:String = "netStatesChanged";
		
		private var _info:Object;
		
		public function P2PEvent(type:String, info:Object, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			_info = info;
		}
		
		public function get info():Object{
			return _info;
		}
		
		override public function clone():Event{
			var e:P2PEvent = new P2PEvent(type, info, bubbles, cancelable);
			return e;
		}
	}
}